/*
 * @Author: chen haoxuan
 * @Date: 2021-06-28 22:00:33
 * @LastEditTime: 2021-06-28 22:08:13
 */
#include<iostream>
using namespace std;
class point
{
  public:
    point(int val){x=val;}
    point& operator++()
    {
      x++;
      return *this;
    }
    point operator++(int)
    {
      point old=*this;
      ++(*this);
      return old;
    }
    int GetX() const {return x;}
  private:
    int x;
};
int main()
{
  point a(10);
  cout<<(++a).GetX();
  cout<<a++.GetX();
  return 0;
}
/*
    11 11

*/